Spread WPF Documentation
SavePdf(String,Int32[]) Method
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > Workbook Class > SavePdf Method : SavePdf(String,Int32[]) Method
The file name.
The index of the sheet.
Saves the content of the GcSpreadSheet component to the specified PDF file.
Syntax
'Declaration
 
Public Overloads Sub SavePdf( _
   ByVal fileName As System.String, _
   ByVal ParamArray sheetIndexs() As System.Integer _
) 
'Usage
 
Dim instance As Workbook
Dim fileName As System.String
Dim sheetIndexs() As System.Integer
 
instance.SavePdf(fileName, sheetIndexs)
public void SavePdf( 
   System.string fileName,
   params System.int[] sheetIndexs
)

Parameters

fileName
The file name.
sheetIndexs
The index of the sheet.
Example
This example prints to a PDF file.
GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings test;
test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings();
test.Title = "Print PDF";
test.Author = "GrapeCity, Inc.";
test.DisplayDocTitle = true;
test.FitWindow = true;
gcSpreadSheet1.SavePDF("c:\\zipfile\\test.pdf", test, 0);
//gcSpreadSheet1.SavePDF("c:\\zipfile\\test.pdf", 0);
Dim test as New GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings
test = new GrapeCity.Windows.SpreadSheet.Data.PdfExportSettings()
test.Title = "Print PDF"
test.Author = "GrapeCity, Inc."
test.DisplayDocTitle = True
test.FitWindow = True
GcSpreadSheet1.SavePDF("c:\zipfile\test.pdf", test, 0)
'GcSpreadSheet1.SavePDF("c:\zipfile\test.pdf", 0)
See Also

Reference

Workbook Class
Workbook Members
Overload List